package com.googlecode.imule.data;
import java.util.LinkedList;
import java.util.List;


public class Method {

	private String name;	// name
	
	private String type;	// return type
	
	private List<Argument> arguments;
	
	public Method() {
		arguments = new LinkedList<Argument>();
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public List<Argument> getArguements() {
		return arguments;
	}

	public void setArguements(List<Argument> arguements) {
		this.arguments = arguements;
	}
	
	public void addArguement(Argument arguement){
		this.arguments.add(arguement);
	}
	
	@Override
	public String toString() {
		return name + " - " + type;
	}
	
}
